#!/bin/bash

sudo apt update

sudo apt install -y php7.4-cli php7.4-fpm php7.4-curl php7.4-mbstring php7.4-bcmath php7.4-mysql php7.4-readline php7.4-xml php7.4-dev php7.4-opcache php7.4-json php7.4-zip php7.4-gd php7.4-intl

php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');"

php composer-setup.php

php -r "unlink('composer-setup.php');"

sudo mv composer.phar /usr/local/bin/composer

composer config -g repo.packagist composer https://packagist.phpcomposer.com
